<?php foreach($edit_menu as $edit_menu_rec): ?>
	<form action="<?php echo site_url("mimin_jonu/update_menu/$edit_menu_rec[jonu_menu_id]") ?>" method="post">
		<table class="table table-bordered">
			<tr>
				<td>
					<label>Text</label>
					<input type="text" name="menu_text" class="form-control input-sm" value="<?php echo $edit_menu_rec['jonu_menu_text'] ?>" required="required"/>
				</td>
				<td>
					<label>Order</label>
					<select name="menu_order" class="form-control input-sm" required="required">
						<?php for($menu_pos=1; $menu_pos<=7; $menu_pos++): ?>
							<?php if($menu_pos == $edit_menu_rec['jonu_menu_order']): ?>
								<option value="<?php echo $menu_pos ?>" selected="selected"><?php echo $menu_pos ?></option>
							<?php else: ?>
								<option value="<?php echo $menu_pos ?>"><?php echo $menu_pos ?></option>
							<?php endif; ?>
						<?php endfor; ?>
					</select>
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<label>Link</label>
					<input type="text" name="menu_link" class="form-control input-sm" value="<?php echo $edit_menu_rec['jonu_menu_link'] ?>" required="required"/>
				</td>
			</tr>
		</table>
		<input style="float:right !important" type="submit" name="btn_update_menu" class="btn btn-jonu" value="Update Menu"/>
	</form>
<?php endforeach; ?>